import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import Print from 'vue-print-nb'
Vue.use(Print);

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import '@/assets/public.css'

Vue.config.productionTip = false

//事件中心
import EventManager from "@/utils/EventManager.js";

// //日期工具
import DateUtil from "@/engine/utils/DateUtil.js";
Vue.prototype.DateUtil = DateUtil;
//基础工具类
import BaseUtil from "@/engine/utils/BaseUtil.js";
//全局引用
import XNTooltip from "./engine/plugs/XNTooltip.vue";
Vue.component('XNTooltip', XNTooltip)


//数据中心

// import MPDataManager from "./public/MPDataManager.js";
// Vue.prototype.$datamanager = MPDataManager;
import global from '../global'
Vue.prototype.$global = global




import Table_Common from "@/engine/plugs/Table_Common"
Vue.component('Table_Common', Table_Common)

import "@/utils/BaseUtil.js"

//全局数据字典
import publicApi from '@/api/publicApi/publicApi.js';
Vue.prototype.$publicApi=publicApi

//下载模版
import downloadModel from "@/utils/downloadModel.js";
Vue.prototype.$downloadModel=downloadModel

import htmlToPdf from '@/utils/htmlToPdf.js'
Vue.use(htmlToPdf)



// import VueQuillEditor from 'vue-quill-editor'
// // 富文本编辑器对应的样式
// import 'quill/dist/quill.core.css'
// import 'quill/dist/quill.snow.css'
// import 'quill/dist/quill.bubble.css'

// // 注册富文本编辑器组件为全局组件
// Vue.use(VueQuillEditor)
Vue.directive('dialogDrag',{
  bind(el,binding,vnode){
    console.log(el);
  }
})




new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
